#include <gtk/gtk.h>

int main( int   argc,
          char *argv[] )
{
    GtkWidget *window;
    
    //gtk_init sets up the library for use, eats its specific arguments and leaves the rest for the program
    //to use for whatever
    gtk_init (&argc, &argv);
    
    //initializes and creates a new window. TOPLEVEL indicates that it should use the window manager 
    //decoration and placement, automatically 200x200
    window = gtk_window_new (GTK_WINDOW_TOPLEVEL);

    //we have finished setting attributes to the window and can now display it
    gtk_widget_show  (window);
    
    //enters the GTK main processing loop. it will sleep and wait for X events like buttons and key presses
    gtk_main ();
    
    return 0;
}
